﻿<script type="text/javascript" src="__PUBLIC__/admin/js/common-1.0.js"></script> 
<div class="cl pd-5 bg-1 bk-gray mb-10">
  <span class="r mt-3">共有数据：<strong>{$rows}</strong> 条</span>
</div>
<table id="xctable" class="table table-border table-bordered table-hover table-bg table-sort">
  <thead>
    <tr class="text-c">
      <th width="40">编号</th>
      <th width="120" id="us_uid" onClick="tab_sort(this)"><div class="">流水号</div></th>
      <th width="80" id="us_name" onClick="tab_sort(this)"><div class="">收件人</div></th>
      <th width="60" id="us_pid" onClick="tab_sort(this)"><div class="">原价总和</div></th>
      <th width="100" id="us_money" onClick="tab_sort(this)"><div class="">支付金额</div></th>
      <th width="120" id="us_state" onClick="tab_sort(this)"><div class="">下单时间</div></th>
      <!--<th width="80" id="us_points" onClick="tab_sort(this)"><div class="">订单状态</div></th>-->
      <th width="70" id="us_state" onClick="tab_sort(this)"><div class="">操作</div></th>
    </tr>
  </thead>
  <volist name="list" id="vo" >
    <tr class="text-c">
      <td>{$i}</td>
      <td><a href="javascript:;" onclick="layer_open('订单详情','__MODULE__/Order/orderShow?id={$vo[or_id]}')" title="查看">{$vo.or_batch}</a></td>
      <td>{$vo.addre.aname}&nbsp;&nbsp;{$vo.addre.phone}</td>
      <td>￥{$vo.or_gprice}</td>
      <td><eq name='vo.or_pname' value='1'>免费商品<else />￥{$vo[or_zmon]}<if condition="($vo.or_jmon gt 0)">+{$vo.or_jmon}积分</if></eq></td>
      <td>{$vo.or_xtime|date='Y-m-d H:i',###}</td>
      <td>
        <a href="javascript:;" onclick="layer_open('订单详情','__MODULE__/Order/orderShow?id={$vo[or_id]}')" title="查看"><i class="Hui-iconfont">&#xe695;</i></a>
        <if condition="($vo[or_ostate] eq 1)">
          <if condition="($vo[or_pstate] eq 1)">
            <a href="javascript:;" onclick="payOrder('{$vo.or_id}')" title="设为付款"><i class="Hui-iconfont">&#xe6ca;</i></a>
          <elseif condition="($vo[or_pstate] eq 2)" />
            <if condition="($vo[or_wstate] eq 1)">
              <a href="javascript:;" onclick="layer_show('订单发货','__MODULE__/Order/sendGoods?id={$vo.or_id}','600','400')" title="去发货"><i class="Hui-iconfont">&#xe603;</i></a>
              <a href="{:U('Order/orderPrint',array('id'=>$vo[or_id]))}" target="_blank" title="打印发货单"><i class="Hui-iconfont">&#xe652;</i></a>
            <elseif condition="($vo[or_wstate] eq 2)" />
              <a href="javascript:;" onclick="takeOrder('{$vo.or_id}')" title="确认收货"><i class="Hui-iconfont">&#xe620;</i></a>
              <a href="javascript:;" onclick="layer_show('物流信息','__MODULE__/Order/express?com={$vo[expre][ecode]}&nu={$vo[expre][enumb]}','580','440');" title="查看物流"><i class="Hui-iconfont">&#xe669;</i></a>
            <else />
              <a href="javascript:;" onclick="layer_show('物流信息','__MODULE__/Order/express?com={$vo[expre][ecode]}&nu={$vo[expre][enumb]}','580','440');" title="查看物流"><i class="Hui-iconfont">&#xe669;</i></a>
            </if>
          </if>
        <elseif condition="($vo[or_ostate] eq 2)"/>
          <a href="javascript:;" onclick="delOrder(this,'{$vo.or_id}')" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a>
        </if>
      </td>
    </tr>
  </volist>
</table>
{$page}<!-- 分页-->
<script type="text/javascript">
$(".pagination a").click(function(){
	var page = $(this).data('p');
	ajax_get_table('myfrom1',page);
});
</script>
